

/*Program to Demonstrate printing of a string using While loop Here i is
initialised from zero and ending is 7. So printf will print the character from
memory up to seven character.*/

#include<stdio.h>
#include<conio.h>
void main()
{
	char name[] = "Klinsman";
	int i = 0;

	clrscr();

	gotoxy(10, 5);
	while(i <= 7)
	{
		printf("%c", name[i]);
		i++;
	}
	getch();
}